<template>
  <div>
    <input type="text" :value="value"/>
  </div>
</template>
<script></script>
<script lang="ts" setup="props">
// import {ref} from 'vue'
import { FieldPropsDefine, Schema } from "../types";
declare const props: {
  value: any,
  onChange: (v:string)=>void,
  schema: Schema
}
export const handleChange = (e:any) => {
  console.log(e);
  props.onChange(e.target.value)
}
export default {
  name: 'StringField',
  props: FieldPropsDefine,
}
</script>